home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / Developer Essentials Jul 90 / Programming / MPW Interfaces & Libraries 3.1 / PInterfaces / DiskInit.p < prev    next >
Encoding:
Text File  |  1989-10-13  |  1.2 KB  |  59 lines  |  [TEXT/MPS ]

  1. {
  2. Created: Saturday, October 15, 1988 at 1:50 AM
  3.     DiskInit.p
  4.     Pascal Interface to the Macintosh Libraries
  5.  
  6.     Copyright Apple Computer, Inc.     1985-1988
  7.     All rights reserved
  8. }
  9.  
  10.  
  11. {$IFC UNDEFINED UsingIncludes}
  12. {$SETC UsingIncludes := 0}
  13. {$ENDC}
  14.  
  15. {$IFC NOT UsingIncludes}
  16.     UNIT DiskInit;
  17.     INTERFACE
  18. {$ENDC}
  19.  
  20. {$IFC UNDEFINED UsingDiskInit}
  21. {$SETC UsingDiskInit := 1}
  22.  
  23. {$I+}
  24. {$SETC DiskInitIncludes := UsingIncludes}
  25. {$SETC UsingIncludes := 1}
  26. {$IFC UNDEFINED UsingTypes}
  27. {$I $$Shell(PInterfaces)Types.p}
  28. {$ENDC}
  29. {$SETC UsingIncludes := DiskInitIncludes}
  30.  
  31. TYPE
  32.  
  33. HFSDefaults = RECORD
  34.     sigWord: PACKED ARRAY [0..1] OF Byte;    { signature word}
  35.     abSize: LONGINT;                        { allocation block size in bytes}
  36.     clpSize: LONGINT;                        { clump size in bytes}
  37.     nxFreeFN: LONGINT;                        { next free file number}
  38.     btClpSize: LONGINT;                     { B-Tree clump size in bytes}
  39.     rsrv1: INTEGER;                         { reserved}
  40.     rsrv2: INTEGER;                         { reserved}
  41.     rsrv3: INTEGER;                         { reserved}
  42.     END;
  43.  
  44.  
  45.  
  46. PROCEDURE DILoad;
  47. PROCEDURE DIUnload;
  48. FUNCTION DIBadMount(where: Point;evtMessage: LONGINT): INTEGER;
  49. FUNCTION DIFormat(drvNum: INTEGER): OSErr;
  50. FUNCTION DIVerify(drvNum: INTEGER): OSErr;
  51. FUNCTION DIZero(drvNum: INTEGER;volName: Str255): OSErr;
  52.  
  53. {$ENDC}    { UsingDiskInit }
  54.  
  55. {$IFC NOT UsingIncludes}
  56.     END.
  57. {$ENDC}
  58.  
  59.